package com.wujilee.mqdelaytask.controller;

import com.wujilee.mqdelaytask.entity.EntityDelayTask;
import com.wujilee.mqdelaytask.mapper.EntityDelayTaskGeneratedMapper;
import com.wujilee.mqdelaytask.service.DelayTaskService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author liwuji
 * @date 2024/5/30
 * @desc
 **/
@RestController
@RequestMapping("/task")
public class DelayTaskController {
    @Resource
    private DelayTaskService delayTaskService;
    
    @PostMapping("/save")
    public Boolean sumbit(EntityDelayTask entityDelayTask){
        delayTaskService.saveDelayTask(entityDelayTask);
        return  true;
    }
    
    
}
